import axios from 'axios'
const ConfigBaseURL = process.env.BASE_API

// 创建axios
const Service = axios.create({
  baseURL: ConfigBaseURL
})

// 请求拦截器
Service.interceptors.request.use(config => {
  return config
})

// 响应拦截器
Service.interceptors.response.use(response => {
  return response
},
error => {
  return Promise.reject(error)
}
)
export default Service
